<!--定义分页请求地址，传递给backConstant.ftl-->
<#assign urllist="${rc.contextPath}/electronicInvoiceGf/electronicInvoiceAdminJsonList" />
<!--定义详情请求地址，传递给backConstant.ftl-->
<#assign urldetail="${rc.contextPath}/electronicInvoiceGf/electronicInvoiceAdminJsonDetail" />
<!--定义添加表单初始值请求地址，传递给backConstant.ftl-->
<#assign urladdforminit="${rc.contextPath}/electronicInvoiceGf/electronicInvoiceAdminJsonAddFormInit" />
<!--定义保存实体变量地址，传递给backConstant.ftl-->
<#assign urlsave="${rc.contextPath}/electronicInvoiceGf/electronicInvoiceAdminJsonSave" />
<!--定义修改实体变量地址，传递给backConstant.ftl-->
<#assign urlupdate="${rc.contextPath}/electronicInvoiceGf/electronicInvoiceAdminJsonUpdate" />
<!--定义删除实体变量地址，传递给backConstant.ftl-->
<#assign urldelete="${rc.contextPath}/electronicInvoiceGf/electronicInvoiceAdminJsonDelete" />
<!--include常量-->
<#include "/misc/backConstant.ftl">

<script type="text/javascript">
		//设置分页表格的属性
		var paginationColumns = 
			[
			 {field:"ghdwmc",title:"<@i18n.message "electrongf.message.field.ghdwmc"/>",width:50},
			 {field:"ghdwsbh",title:"<@i18n.message "electrongf.message.field.ghdwsbh"/>",width:50},
			 {field:"ghdwdh",title:"<@i18n.message "electrongf.message.field.ghdwdh"/>",width:50},
			 {field:"ghdwdz",title:"<@i18n.message "electrongf.message.field.ghdwdz"/>",width:50},
			 {field:"ghdwyhmc",title:"<@i18n.message "electrongf.message.field.ghdwyhmc"/>",width:50},
			 {field:"createdate",title:"<@i18n.message "picturegallery.message.field.createdate"/>",width:50}
			];
		
		//可以在这里扩充详情的显示
		function detailSet${currentActionName}(result){
		}
				//查询
		function doSearch${currentActionName}(){
			$('#' + dg).datagrid('load',{
				"ghdwsbh": $('#ghdwsbhSearchKey${currentActionName}').val()
		    });
		}
		
</script>
<script type="text/javascript" src="${rc.contextPath}/static/js/crud.js"></script>

<div style="padding:5px;">
	<table id="dg${currentActionName}"></table>
	<div id="toolbar${currentActionName}"  style="padding:5px;height:auto">
		<div style="margin-bottom:5px">
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="openDetail('detail','${currentActionName}','${urldetail}')"><@i18n.message "button.detail"/></a>
		</div>
		<div>
			<input id="ghdwsbhSearchKey${currentActionName}" class="easyui-textbox" data-options="prompt:'<@i18n.message "electrongf.message.field.ghdwsbh"/>'"> &nbsp;&nbsp;
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="doSearch${currentActionName}()"><@i18n.message "button.search"/></a>
		</div>
	</div>
	<div id="dlg${currentActionName}" class="easyui-dialog" closed="true" resizable="true" minimizable="true" collapsible="true" maximizable="true" style="width:35%;height:70%;padding:10px 20px"
			 buttons="#dlg-buttons${currentActionName}">
		<div class="ftitle"><@i18n.message "electrongf.message.info"/></div>
			<@spring.form id="fm${currentActionName}" modelAttribute="vm" method="post">
				<div class="fitem">
					<label><@i18n.message "electrongf.message.field.ghdwsbh"/>:</label>
					<input name="spmc" id="spmcFormKey${currentActionName}" class="easyui-textbox" data-options="required:true" missingMessage='<@i18n.message "electrongf.message.field.ghdwsbh"/>'>
				</div>
				<div class="fitem">
					<label><@i18n.message "electrongf.message.field.ghdwyhmc"/>:</label>
					<input name="sl" id="spmcFormKey${currentActionName}" class="easyui-textbox" data-options="required:true" missingMessage='<@i18n.message "electrongf.message.field.ghdwyhmc"/>'>
				</div>
					<input type="hidden" name="${CoreConstants.TOKEN_KEY}" id="${CoreConstants.TOKEN_KEY}${currentActionName}">
			</@spring.form>
		</div>

	</div>
	<div id="dlg-buttons${currentActionName}">
		<a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="save('dlg','fm','${currentActionName}','${urlsave}','${urlupdate}')"><@i18n.message "button.save"/></a>
		<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancelForm('dlg','fm','${currentActionName}')"><@i18n.message "button.cancel"/></a>
	</div>
	<div id="detail${currentActionName}" class="easyui-dialog" closed="true" resizable="true" minimizable="true" collapsible="true" maximizable="true" style="width:35%;height:70%;padding:10px 20px" buttons="#detail-buttons${currentActionName}">
		<div class="ftitle"><@i18n.message "electrongf.message.info"/></div>
		<table class="window_table">
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwsbh"/>:</td>
				<td><label id="ghdwsbh${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwmc"/>:</td>
				<td><label id="ghdwmc${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwdz"/>:</td>
				<td><label id="ghdwdz${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwdh"/>:</td>
				<td><label id="ghdwdh${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwyhmc"/>:</td>
				<td><label id="ghdwyhmc${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwyh"/>:</td>
				<td><label id="ghdwyh${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.gfkhyx"/>:</td>
				<td><label id="gfkhyx${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.plateNumber"/>:</td>
				<td><label id="plateNumber_plateNumber${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "picturegallery.message.field.createdate"/>:</td>
				<td><label id="createdate${currentActionName}"></label></td>
			</tr>
		</table>
	</div>
	
	
	<div id="detail-buttons${currentActionName}">
		<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancelForm('detail',null,'${currentActionName}')"><@i18n.message "button.closed"/></a>
	</div>
</div>